/**
 * Project Name:swt-hello <br/>
 * File Name:App.java <br/>
 * Package Name:com.ftu.z <br/>
 */
package com.ftu.swt.basic1;

import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;


/**
 * <p>  </p>
 * @version 1.0 2018年11月22日 mq 修改内容:初版
 */
public class App {
    public static void main(String[] args) {
        Display display = Display.getDefault();
        
        Shell shell1 = new Shell(display);
        Shell shell2 = new Shell(shell1);
        
        shell1.setText("Parent");
        shell2.setText("Child");
        
        shell1.setSize(200, 200);
        shell2.setSize(200, 200);
        
        shell1.open();
        shell2.open();
        while(!shell1.isDisposed()) {
            if(!display.readAndDispatch()) {
                display.sleep();
            }
        }
        display.dispose();
        
    }

}
